package edu.unindra.raport.gui;

import java.awt.Font;
import java.awt.GridBagConstraints;
import java.awt.Insets;

import javax.swing.ImageIcon;
import javax.swing.JPanel;
import javax.swing.SwingConstants;

import edu.unindra.raport.template.ButtonTransparan;

public class FormDetailMenu extends JPanel {

	/**
	 * 
	 */
	private static final long serialVersionUID = 1320811678631342254L;

	private GridBagConstraints grid2;

	private ButtonTransparan btnReport;
	private ButtonTransparan btnOperator;
	private ButtonTransparan btnNilai;
	private ButtonTransparan btnSiswa;
	private ButtonTransparan btnGuru;
	private ButtonTransparan btnHome;

	public FormDetailMenu() {
		initComponents();
	}

	public ButtonTransparan getBtnReport() {
		return btnReport;
	}

	public ButtonTransparan getBtnOperator() {
		return btnOperator;
	}

	public ButtonTransparan getBtnNilai() {
		return btnNilai;
	}

	public ButtonTransparan getBtnSiswa() {
		return btnSiswa;
	}

	public ButtonTransparan getBtnGuru() {
		return btnGuru;
	}

	public ButtonTransparan getBtnHome() {
		return btnHome;
	}

	private void initComponents() {
		setOpaque(false);
		setLayout(new java.awt.GridBagLayout());

		btnGuru = new ButtonTransparan();
		btnGuru.setIcon(new ImageIcon(FormDetailMenu.class
				.getResource("/edu/unindra/raport/image/user.png")));
		btnGuru.setText("Guru");
		btnGuru.setHorizontalAlignment(SwingConstants.CENTER);
		btnGuru.setFont(new Font("Tahoma", Font.BOLD, 13));
		GridBagConstraints gbc_btntrnsprnGuru = new GridBagConstraints();
		gbc_btntrnsprnGuru.insets = new Insets(0, 0, 5, 5);
		gbc_btntrnsprnGuru.gridx = 0;
		gbc_btntrnsprnGuru.gridy = 1;
		add(btnGuru, gbc_btntrnsprnGuru);

		btnSiswa = new ButtonTransparan();
		btnSiswa.setIcon(new ImageIcon(FormDetailMenu.class
				.getResource("/edu/unindra/raport/image/author.png")));
		btnSiswa.setText("Siswa");
		btnSiswa.setHorizontalAlignment(SwingConstants.CENTER);
		btnSiswa.setFont(new Font("Tahoma", Font.BOLD, 13));
		GridBagConstraints gbc_btnSiswa = new GridBagConstraints();
		gbc_btnSiswa.insets = new Insets(0, 0, 5, 5);
		gbc_btnSiswa.gridx = 1;
		gbc_btnSiswa.gridy = 1;
		add(btnSiswa, gbc_btnSiswa);

		btnOperator = new ButtonTransparan();
		btnOperator.setFont(new Font("Tahoma", Font.BOLD, 13));
		btnOperator.setHorizontalAlignment(javax.swing.SwingConstants.CENTER);
		btnOperator.setIcon(new ImageIcon(FormDetailMenu.class
				.getResource("/edu/unindra/raport/image/operator.png")));
		btnOperator.setText("Operator");
		GridBagConstraints gbc_btnPlay = new GridBagConstraints();
		gbc_btnPlay.insets = new Insets(0, 0, 5, 0);
		gbc_btnPlay.gridx = 2;
		gbc_btnPlay.gridy = 1;
		add(btnOperator, gbc_btnPlay);

		btnHome = new ButtonTransparan();
		btnHome.setIcon(new ImageIcon(FormDetailMenu.class
				.getResource("/edu/unindra/raport/image/publisher.png")));
		btnHome.setVerticalAlignment(SwingConstants.BOTTOM);
		btnHome.setText("Home");
		btnHome.setFont(new Font("Tahoma", Font.BOLD, 13));
		GridBagConstraints gbc_btntrnsprnHome = new GridBagConstraints();
		gbc_btntrnsprnHome.insets = new Insets(0, 0, 0, 5);
		gbc_btntrnsprnHome.gridx = 0;
		gbc_btntrnsprnHome.gridy = 2;
		add(btnHome, gbc_btntrnsprnHome);

		btnNilai = new ButtonTransparan();
		btnNilai.setFont(new Font("Tahoma", Font.BOLD, 13));
		btnNilai.setIcon(new ImageIcon(FormDetailMenu.class
				.getResource("/edu/unindra/raport/image/kind.png")));
		btnNilai.setVerticalAlignment(SwingConstants.BOTTOM);
		btnNilai.setText("Nilai");
		GridBagConstraints gbc_btnNilai = new GridBagConstraints();
		gbc_btnNilai.insets = new Insets(0, 0, 0, 5);
		gbc_btnNilai.gridx = 1;
		gbc_btnNilai.gridy = 2;
		add(btnNilai, gbc_btnNilai);

		btnReport = new ButtonTransparan();
		btnReport.setVerticalAlignment(SwingConstants.BOTTOM);
		btnReport.setFont(new Font("Tahoma", Font.BOLD, 13));
		btnReport.setIcon(new ImageIcon(FormDetailMenu.class
				.getResource("/edu/unindra/raport/image/report.png")));
		btnReport.setText("Reports");
		grid2 = new java.awt.GridBagConstraints();
		grid2.gridx = 2;
		grid2.gridy = 2;
		add(btnReport, grid2);

	}
}
